﻿using System;
using System.Threading;

namespace Akronus.TaskScheduler
{
    /// <summary>
    /// The interface for the task runner.
    /// </summary>
    public interface ITaskRunner
    {
        /// <summary>
        /// Executes the specified action.
        /// </summary>
        /// <param name="action">The action.</param>
        void Execute(ThreadStart action);

        /// <summary>
        /// Aborts the task.
        /// </summary>
        void Abort();
    }
}
